package com.flower.salary.controller;

import com.flower.salary.common.utils.R;
import com.flower.salary.domain.entity.SysLog;
import com.flower.salary.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author baomidou
 * @since 2024-02-27
 */
@RestController
@RequestMapping("/salary")
public class SysLogController {


    @Autowired
    private SysLogService service;


    @GetMapping("/log")
    private R all(){
        List<SysLog> all = service.all();
        return R.ok(all);
    }

}
